From: Jasper St. Pierre Date: Thu, 20 Sep 2012 22:36:52 +0000 (-0300) Subject: messageTray: Don't open the tray from a dwell if we're in a modal grab X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5760 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a87ba467aeee0debb606efb9dc95084b7c66f584;p=gnome-shell.git messageTray: Don't open the tray from a dwell if we're in a modal grab If we're in an alt-tab popup or modal dialog, we shouldn't pop up the tray at all. https://bugzilla.gnome.org/show_bug.cgi?id=684458 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 6892ba193..cfc2e6ce1 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1561,6 +1561,9 @@ const MessageTray = new Lang.Class({ }, _trayDwellTimeout: function() { + if (Main.modalCount > 0) + return false; + // If the user interacted with the focus window since we started the tray // dwell (by clicking or typing), don't activate the message tray let focusWindow = global.display.focus_window;